import { successResponse, errorResponseSchema } from './common.doc';

const friendSchema = {
    type: 'object',
    properties: {
        id: {
            type: 'integer',
            description: '好友ID'
        },
        username: {
            type: 'string',
            description: '好友用户名'
        },
        email: {
            type: 'string',
            description: '好友邮箱'
        },
        avatar: {
            type: 'string',
            description: '好友头像'
        },
        signature: {
            type: 'string',
            description: '好友个性签名'
        }
    }
};

export const friendDocs = {
    getList: {
        get: {
            summary: '获取好友列表',
            description: '获取当前用户的好友列表',
            tags: ['好友'],
            responses: {
                200: successResponse({
                    type: 'array',
                    items: friendSchema
                }),
                500: errorResponseSchema
            }
        }
    }
}; 